from django.contrib import admin
from django.db import models
from django.db.models.signals import post_save
from django.forms import ModelForm
from django import forms

class Company(models.Model):
    name = models.CharField(max_length=200)

class Recall(models.Model):
    brand_name = models.CharField(max_length=200, null=True)
    description = models.CharField(max_length=300, null=True)
    reason = models.CharField(max_length=300, null=True)
    company = models.ForeignKey(Company, unique=False)
    photo_link = models.URLField(null=True, blank=True)
    release_link = models.URLField(unique=True)
    summary = models.TextField(null=True, blank=True)
    when = models.DateTimeField()